﻿package hunterCommonlib.display.animation 
{
	import flash.display.Sprite;
	import flash.events.TimerEvent;
	import flash.utils.Timer;
	
	/**
	 * ...
	 * @author ...
	 */
	public class AnimationContainer extends Sprite
	{
		protected var _rate:uint;
		protected var _timer:Timer;
		protected var _beginFrame:uint;
		protected var _endFrame:uint;
		protected var _loop:Boolean;
		protected var _count:uint
		protected var _children:Array;
		public var defaultFrame:uint;
		
		public function AnimationContainer() 
		{
			_timer = new Timer();
			_timer.addEventListener(TimerEvent.TIMER, render);
		}
		public function set beginFrame(frame:uint):void {
			
		}
		public function get beginFrame():uint {
			return _beginFrame;
		}
		public function set endFrame(frame:uint):void {
			
		}
		public function get count():uint {
			return _count;
		}
		public function get beginFrame():uint {
			return _endFrame;
		}
		public function setRate(rate:uint) {
			_rate = rate;
			_timer.delay = rate;
		}
		public function startMovie():void {
			if (!_timer.running) {
				_timer.start();
			}
		}
		public function stopMovie():void {
			if(_timer.running){
				_timer.stop();
			}
		}
		protected function render(e:TimerEvent):void {
			if(_count>=
		}
	}
	
}